
{extend name="common@bootstrap" /}
{block name="body_content"}
<div class="btn-group">
    <a href="{:url('read')}" class="btn btn-default">列表</a>
    <a href="{:url('create')}" class="btn btn-default">继续添加</a>
</div>
<form action="{:url('update')}" method="post" role="form" data-auto-date="2019/06/26" data-auto-time="22:34">

    <div class="form-group">
        <label for="input-id">自增id</label>
        <input type="number" class="form-control" id="input-id" name="id" value="{$row['id']}" placeholder="请输入自增id">
    </div>

    <div class="form-group">
        <label for="input-is_shelves">是否上架（下架后用户不可见, 0否, 1是）</label>
        <input type="number" class="form-control" id="input-is_shelves" name="is_shelves" value="{$row['is_shelves']}" placeholder="请输入是否上架（下架后用户不可见, 0否, 1是）">
    </div>

    <div class="form-group">
        <label for="input-create_ts">添加时间</label>
        <input type="number" class="form-control" id="input-create_ts" name="create_ts" value="{$row['create_ts']}" placeholder="请输入添加时间">
    </div>

    <div class="form-group">
        <label for="input-update_ts">更新时间</label>
        <input type="number" class="form-control" id="input-update_ts" name="update_ts" value="{$row['update_ts']}" placeholder="请输入更新时间">
    </div>

    <div class="form-group">
        <label for="input-goods_id">商品id</label>
        <input type="number" class="form-control" id="input-goods_id" name="goods_id" value="{$row['goods_id']}" placeholder="请输入商品id">
    </div>

    <div class="form-group">
        <label for="input-inventory">库存</label>
        <input type="number" class="form-control" id="input-inventory" name="inventory" value="{$row['inventory']}" placeholder="请输入库存">
    </div>

    <div class="form-group">
        <label for="input-price">销售价格</label>
        <input type="number" class="form-control" id="input-price" name="price" value="{$row['price']}" placeholder="请输入销售价格">
    </div>

    <div class="form-group">
        <label for="input-weight">重量（kg） </label>
        <input type="number" class="form-control" id="input-weight" name="weight" value="{$row['weight']}" placeholder="请输入重量（kg） ">
    </div>

    <div class="form-group">
        <label for="input-original_price">原价</label>
        <input type="number" class="form-control" id="input-original_price" name="original_price" value="{$row['original_price']}" placeholder="请输入原价">
    </div>

    <div class="form-group">
        <label for="input-coding">编码</label>
        <input type="text" class="form-control" id="input-coding" name="coding" value="{$row['coding']}" placeholder="请输入编码">
    </div>

    <div class="form-group">
        <label for="input-barcode">条形码</label>
        <input type="text" class="form-control" id="input-barcode" name="barcode" value="{$row['barcode']}" placeholder="请输入条形码">
    </div>

    <div class="form-group">
        <label for="input-images">规格图片</label>
        <input type="text" class="form-control" id="input-images" name="images" value="{$row['images']}" placeholder="请输入规格图片">
    </div>

    <div class="form-group">
        <label for="textarea-value">规格值（json字符串存储）</label>
        <textarea class="form-control" id="textarea-value" name="value" placeholder="请输入规格值（json字符串存储）" rows="3">{$row['value']}</textarea>
    </div>

    <button type="submit" class="btn btn-default">确定</button>
</form>
{/block}
